package com.wmx.controller;

import com.wmx.service.EmpService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * 员工信息-控制层
 *
 * @author wangMaoXiong
 * @version 1.0
 * @date 2022/4/9 8:33
 */
@Controller
public class EmpController {

    @Resource
    private EmpService empService;

    /**
     * http://localhost:8080/emp/findAll
     *
     * @return
     */
    @GetMapping("/emp/findAll")
    @ResponseBody
    public List<Map<String, Object>> findAll() {
        return empService.findAll();
    }

}
